package com.zhou.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * @Description : 司机信息表
 * @Author : zyy
 * @Date: 2024/9/4  17:44
 */
@Data
@Schema(description = "司机信息表")
public class Driver {
    @Schema(description = "司机id")
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @Schema(description = "司机姓名")
    @TableField("driver_name")
    private String driverName;

    @Schema(description = "司机电话")
    @TableField("driver_phone")
    private String driverPhone;

    @Schema(description = "司机状态 0在岗 1休息 2请假")
    @TableField("status")
    private Integer status;

    @Schema(description = "0在职 1离职")
    @TableField("del_flag")
    private Integer delFlag;

    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @Schema(description = "出发时间")
    @TableField("start_time")
    private String startTime;

    @Schema(description = "结束时间")
    @TableField("end_time")
    private String endTime;

    @Schema(description = "车牌号")
    @TableField("car_no")
    private String carNo;

    @Schema(description = "创建时间")
    @TableField(value = "update_time")
    private Date updateTime;
}
